package com.logic.service.protocol;

import com.logic.service.MsgService;
import com.pjc.annotation.Protocol;
import com.pjc.annotation.SrvToSrv;
import com.pjc.config.GlobalKey;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 消息服务器与逻辑服务器协议类
 * 
 * @author 王畅
 * @version 创建时间：2015-7-2 上午09:04:38
 */
@SrvToSrv
public class AccessToLogicService {

	protected final static Logger log = LoggerFactory.getLogger(AccessToLogicService.class);

	/**
	 * 聊天消息
	 * 
	 * @author 王畅
	 * @param data
	 * @throws Exception
	 */
	@Protocol(protoId = GlobalKey.AccessToLogic.TRANS_CHAT_MSG)
	public static int transChatMsg(String data) throws Exception {
		return 0;
	}

	/**
	 * 踢人协议
	 * 
	 * @author 王畅
	 * @param data
	 * @return
	 * @throws Exception
	 */
	@Protocol(protoId = GlobalKey.AccessToLogic.KICK_USER)
	public static int kickUser(String data) throws Exception {
		return MsgService.handlerKickUser(data);
	}
}
